package com.weetop.aklyscan.activity.qingdan;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.weetop.aklyscan.R;

public class InfoDialog2 extends Dialog {
    private Context mContext;
    private TextView shouhuoren, beizhu, button;
    private LinearLayout ll_remark;
    private String text1, text2;

    public InfoDialog2(Context context, String text1, String text2) {
        super(context, R.style.promptDialog);
        setContentView(R.layout.dialog_info_2);
        mContext = context;
        this.text1 = text1;
        this.text2 = text2;
        initVar();
        initView();
        initAttr();
        initAction();
    }

    public void initVar() {
    }

    public void initView() {
        shouhuoren = findViewById(R.id.tv_time);
        beizhu = findViewById(R.id.tv_name);
        button = findViewById(R.id.button);
        ll_remark = findViewById(R.id.ll_remark);
    }

    public void initAttr() {
        shouhuoren.setText(text1);
        beizhu.setText(text2);
    }

    public void initAction() {
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }

}